package com.qd.pay.domain;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * @author sjk
 */
@Data
@Accessors(chain = true)
public class OrderReportDTO {

    @Size(max = 32, message = "transactionId长度不能超过{max}位")
    private String transactionId;

    private LocalDateTime timeEnd;

    @Size(max = 16, message = "bankType长度不能超过{max}位")
    private String bankType;

    private BigDecimal payAmount;

    @Size(max = 20, message = "resultCode长度不能超过{max}位")
    private String resultCode;

    private LocalDateTime addTime;

    @Size(max = 50, message = "orderId长度不能超过{max}位")
    private String orderId;

    public void freeData() {
        this.transactionId = null;
        this.timeEnd = null;
        this.bankType = null;
        this.payAmount = null;
        this.resultCode = null;
        this.addTime = null;
        this.orderId = null;
    }
}
